3.4.62 \(\int \frac {\log (f x^m) (a+b \log (c (d+e x)^n))}{x} \, dx\) [362]

Optimal. Leaf size=88 \[ \frac {\log ^2\left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 m}-\frac {b n \log ^2\left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 m}-b n \log \left (f x^m\right ) \text {Li}_2\left (-\frac {e x}{d}\right )+b m n \text {Li}_3\left (-\frac {e x}{d}\right ) \]

[Out]

1/2*ln(f*x^m)^2*(a+b*ln(c*(e*x+d)^n))/m-1/2*b*n*ln(f*x^m)^2*ln(1+e*x/d)/m-b*n*ln(f*x^m)*polylog(2,-e*x/d)+b*m*
n*polylog(3,-e*x/d)

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2472, 2354, 2421, 6724} \begin {gather*} -b n \log \left (f x^m\right ) \text {PolyLog}\left (2,-\frac {e x}{d}\right )+b m n \text {PolyLog}\left (3,-\frac {e x}{d}\right )+\frac {\log ^2\left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 m}-\frac {b n \log \left (\frac {e x}{d}+1\right ) \log ^2\left (f x^m\right )}{2 m} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(Log[f*x^m]*(a + b*Log[c*(d + e*x)^n]))/x,x]

[Out]

(Log[f*x^m]^2*(a + b*Log[c*(d + e*x)^n]))/(2*m) - (b*n*Log[f*x^m]^2*Log[1 + (e*x)/d])/(2*m) - b*n*Log[f*x^m]*P
olyLog[2, -((e*x)/d)] + b*m*n*PolyLog[3, -((e*x)/d)]

Rule 2354

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)/((d_) + (e_.)*(x_)), x_Symbol] :> Simp[Log[1 + e*(x/d)]*((a +
b*Log[c*x^n])^p/e), x] - Dist[b*n*(p/e), Int[Log[1 + e*(x/d)]*((a + b*Log[c*x^n])^(p - 1)/x), x], x] /; FreeQ[
{a, b, c, d, e, n}, x] && IGtQ[p, 0]

Rule 2421

Int[(Log[(d_.)*((e_) + (f_.)*(x_)^(m_.))]*((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.))/(x_), x_Symbol] :> Simp
[(-PolyLog[2, (-d)*f*x^m])*((a + b*Log[c*x^n])^p/m), x] + Dist[b*n*(p/m), Int[PolyLog[2, (-d)*f*x^m]*((a + b*L
og[c*x^n])^(p - 1)/x), x], x] /; FreeQ[{a, b, c, d, e, f, m, n}, x] && IGtQ[p, 0] && EqQ[d*e, 1]

Rule 2472

Int[(Log[(f_.)*(x_)^(m_.)]*((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.)))/(x_), x_Symbol] :> Simp[Log[f
*x^m]^2*((a + b*Log[c*(d + e*x)^n])/(2*m)), x] - Dist[b*e*(n/(2*m)), Int[Log[f*x^m]^2/(d + e*x), x], x] /; Fre
eQ[{a, b, c, d, e, f, m, n}, x]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {\log \left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{x} \, dx &=\frac {\log ^2\left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 m}-\frac {(b e n) \int \frac {\log ^2\left (f x^m\right )}{d+e x} \, dx}{2 m}\\ &=\frac {\log ^2\left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 m}-\frac {b n \log ^2\left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 m}+(b n) \int \frac {\log \left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{x} \, dx\\ &=\frac {\log ^2\left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 m}-\frac {b n \log ^2\left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 m}-b n \log \left (f x^m\right ) \text {Li}_2\left (-\frac {e x}{d}\right )+(b m n) \int \frac {\text {Li}_2\left (-\frac {e x}{d}\right )}{x} \, dx\\ &=\frac {\log ^2\left (f x^m\right ) \left (a+b \log \left (c (d+e x)^n\right )\right )}{2 m}-\frac {b n \log ^2\left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )}{2 m}-b n \log \left (f x^m\right ) \text {Li}_2\left (-\frac {e x}{d}\right )+b m n \text {Li}_3\left (-\frac {e x}{d}\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 128, normalized size = 1.45 \begin {gather*} \frac {1}{2} \left (\frac {a \log ^2\left (f x^m\right )}{m}-b m \log ^2(x) \log \left (c (d+e x)^n\right )+2 b \log (x) \log \left (f x^m\right ) \log \left (c (d+e x)^n\right )+b m n \log ^2(x) \log \left (1+\frac {e x}{d}\right )-2 b n \log (x) \log \left (f x^m\right ) \log \left (1+\frac {e x}{d}\right )-2 b n \log \left (f x^m\right ) \text {Li}_2\left (-\frac {e x}{d}\right )+2 b m n \text {Li}_3\left (-\frac {e x}{d}\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(Log[f*x^m]*(a + b*Log[c*(d + e*x)^n]))/x,x]

[Out]

((a*Log[f*x^m]^2)/m - b*m*Log[x]^2*Log[c*(d + e*x)^n] + 2*b*Log[x]*Log[f*x^m]*Log[c*(d + e*x)^n] + b*m*n*Log[x
]^2*Log[1 + (e*x)/d] - 2*b*n*Log[x]*Log[f*x^m]*Log[1 + (e*x)/d] - 2*b*n*Log[f*x^m]*PolyLog[2, -((e*x)/d)] + 2*
b*m*n*PolyLog[3, -((e*x)/d)])/2

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 4.
time = 0.47, size = 1749, normalized size = 19.88

method result size
risch \(\text {Expression too large to display}\) \(1749\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(ln(f*x^m)*(a+b*ln(c*(e*x+d)^n))/x,x,method=_RETURNVERBOSE)

[Out]

-n*b*dilog((e*x+d)/d)*ln(f)+b*ln(c)*ln(x)*ln(f)-1/2*I*b*ln(c)*ln(x)*Pi*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)+1/2
*I*b*ln(c)*ln(x)*Pi*csgn(I*x^m)*csgn(I*f*x^m)^2+1/2*I*n*b*dilog((e*x+d)/d)*Pi*csgn(I*f*x^m)^3-1/2*I*a*ln(x)*Pi
*csgn(I*f*x^m)^3-1/4*I*b*Pi*csgn(I*c)*csgn(I*(e*x+d)^n)*csgn(I*c*(e*x+d)^n)/m*ln(x^m)^2-1/2*I*n*b*dilog((e*x+d
)/d)*Pi*csgn(I*f)*csgn(I*f*x^m)^2-1/4*b*Pi^2*csgn(I*c)*csgn(I*c*(e*x+d)^n)^2*ln(x)*csgn(I*f)*csgn(I*f*x^m)^2+1
/4*b*Pi^2*csgn(I*c*(e*x+d)^n)^3*ln(x)*csgn(I*f)*csgn(I*f*x^m)^2-n*b*dilog((e*x+d)/d)*ln(x^m)-1/2*n*b*m*ln(x)^2
*ln(1+e*x/d)+1/4*I*b*Pi*csgn(I*c)*csgn(I*c*(e*x+d)^n)^2/m*ln(x^m)^2+1/2*I*b*Pi*csgn(I*(e*x+d)^n)*csgn(I*c*(e*x
+d)^n)^2*ln(x)*ln(f)-1/4*b*Pi^2*csgn(I*c)*csgn(I*c*(e*x+d)^n)^2*ln(x)*csgn(I*x^m)*csgn(I*f*x^m)^2+(b*ln(x)*ln(
x^m)-1/2*b*m*ln(x)^2-1/2*I*ln(x)*Pi*b*csgn(I*f)*csgn(I*x^m)*csgn(I*f*x^m)+1/2*I*ln(x)*Pi*b*csgn(I*f)*csgn(I*f*
x^m)^2+1/2*I*ln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/m*ln(x^m)^2+1/2*I*b*ln(c)*ln(x)*Pi*csgn(I*f)*csgn(I*f*x^m)^2-1/4*b*Pi^2*csgn(I*c
*(e*x+d)^n)^3*ln(x)*csgn(I*f*x^m)^3+b*m*n*polylog(3,-e*x/d)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(f*x^m)*(a+b*log(c*(e*x+d)^n))/x,x, algorithm="maxima")

[Out]

-1/2*(b*m*log(x)^2 - 2*b*log(f)*log(x) - 2*b*log(x)*log(x^m))*log((x*e + d)^n) - integrate(-1/2*(b*m*n*x*e*log
(x)^2 - 2*b*n*x*e*log(f)*log(x) + 2*b*d*log(c)*log(f) + 2*(b*log(c)*log(f) + a*log(f))*x*e + 2*a*d*log(f) - 2*
(b*n*x*e*log(x) - (b*log(c) + a)*x*e - b*d*log(c) - a*d)*log(x^m))/(x^2*e + d*x), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(f*x^m)*(a+b*log(c*(e*x+d)^n))/x,x, algorithm="fricas")

[Out]

integral((b*log((x*e + d)^n*c)*log(f*x^m) + a*log(f*x^m))/x, x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(f*x**m)*(a+b*ln(c*(e*x+d)**n))/x,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(f*x^m)*(a+b*log(c*(e*x+d)^n))/x,x, algorithm="giac")

[Out]

integrate((b*log((x*e + d)^n*c) + a)*log(f*x^m)/x, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\ln \left (f\,x^m\right )\,\left (a+b\,\ln \left (c\,{\left (d+e\,x\right )}^n\right )\right )}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((log(f*x^m)*(a + b*log(c*(d + e*x)^n)))/x,x)

[Out]

int((log(f*x^m)*(a + b*log(c*(d + e*x)^n)))/x, x)

________________________________________________________________________________________